﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Jbe.TestSuite.LogViewer.Properties;
using Microsoft.Practices.Composite.Regions;
using Jbe.TestSuite.Infrastructure.Interface;
using Jbe.TestSuite.LogViewer.Presentation;
using Jbe.Composite.Extensions;
using Jbe.TestSuite.LogViewer.Applications;

namespace Jbe.TestSuite.LogViewer
{
    internal class Module : IModule
    {
        private readonly IApplicationContainer container;


        public Module(IApplicationContainer container)
        {
            this.container = container;

            container.RegisterType<ILogView, LogView>(true);
        }


        public void Initialize()
        {
            container.Resolve<ModuleController>().Initialize();
        }
    }
}
